<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IList<Team>>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Base"%>
<table width="100%">
  <tr>
    <th>
      Name
    </th>
    <th>
      Member Count
    </th>
    <th>
    </th>
  </tr>
  <% foreach(var item in Model) { %>
  <tr>
    <td>
      <%= Html.ActionLink(item.Name, "View", "Team", new{ team=item.Id }, null)%>
    </td>
    <td>
      <%= Html.Encode((item.MemberCount).ToString())%>
    </td>
    <td>
        <%= Html.ActionLink("Message", "CreateTeamMessage", "CommunicationCenter", new { teamId = item.Id }, null)%>
    </td>
  </tr>
  <% } %>
</table>
